package com.cspg.ssss.domain;

import java.math.BigDecimal;

/**
 * 被考核部门打分情况统计对象
 */
public class GradeDeptStatEntity {
    private String department_path;
    private int problem_num;
    private String score;

    public GradeDeptStatEntity(String dept, Integer problem_num,BigDecimal score){
        this.department_path = dept;
        this.problem_num = problem_num;
        if(score != null){
            this.score = score.setScale(2,BigDecimal.ROUND_HALF_UP).toString();
        }else {
            this.score = "0";
        }

    }

    public String getDepartment_path() {
        return department_path;
    }

    public void setDepartment_path(String department_path) {
        this.department_path = department_path;
    }

    public int getProblem_num() {
        return problem_num;
    }

    public void setProblem_num(int problem_num) {
        this.problem_num = problem_num;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }
}
